﻿<Window x:Class="GeometryViz3D.Views.ControlPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Control Panel" Height="166" Width="436" ResizeMode="NoResize" ShowInTaskbar="False" WindowStyle="ToolWindow" SizeToContent="Height">
    <Window.Resources>
        <Style x:Key="labelStyle" TargetType="Label">
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style x:Key="sliderStyle" TargetType="Slider">
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style x:Key="textBoxStyle" TargetType="TextBox">
            <Setter Property="Margin" Value="2" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Grid Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="58*" />
            <ColumnDefinition Width="288*" />
            <ColumnDefinition Width="68*" />
        </Grid.ColumnDefinitions>
        
        <Label Grid.Row="0" Grid.Column="0" Name="label1" 
               Style="{StaticResource labelStyle}">_X Axis:</Label>
        <Slider Grid.Row="0" Grid.Column="1" Name="sliderX" 
                Style="{StaticResource sliderStyle}"
                Minimum="-180" Maximum="180" Value="-15"/>
        <TextBox Grid.Row="0" Grid.Column="3"
                 Style="{StaticResource textBoxStyle}"
                 Text="{Binding ElementName=sliderX, Path=Value}" />
        
        <Label Grid.Row="1" Grid.Column="0" Name="label2"
               Style="{StaticResource labelStyle}">_Y Axis:</Label>
        <Slider Grid.Row="1" Grid.Column="1" Name="sliderY" 
                Style="{StaticResource sliderStyle}"
                Maximum="180" Minimum="-180" Value="15"/>
        <TextBox Grid.Row="1" Grid.Column="3" 
                 Style="{StaticResource textBoxStyle}"
                 Text="{Binding ElementName=sliderY, Path=Value}" />

        <Label Grid.Row="2" Grid.Column="0" Name="label3"
               Style="{StaticResource labelStyle}">_Z Axis:</Label>
        <Slider Grid.Row="2" Grid.Column="1" Name="sliderZ" 
                Style="{StaticResource sliderStyle}"
                Minimum="-180" Maximum="180" Value="0"/>
        <TextBox Grid.Row="2" Grid.Column="3" 
                 Style="{StaticResource textBoxStyle}"
                 Text="{Binding ElementName=sliderZ, Path=Value}" />

        <Label Grid.Row="3" Grid.Column="0" Name="label4"
               Style="{StaticResource labelStyle}">_Distance:</Label>
        <Slider Grid.Row="3" Grid.Column="1" Name="sliderDistance" 
                Style="{StaticResource sliderStyle}"
                Value="30" Minimum="5" Maximum="100"/>
        <TextBox Grid.Row="3" Grid.Column="3" 
                 Style="{StaticResource textBoxStyle}"
                 Text="{Binding ElementName=sliderDistance, Path=Value}" />
    </Grid>
</Window>
